package com.example.result;

import lombok.Data;

@Data
public class JsonResult {
    private Boolean flag;
    private Object data;
    private String message;

    public JsonResult(){}
    public JsonResult(Boolean flag){
        this.flag=flag;
    }
    public JsonResult(Boolean flag,String message){
        this.flag=flag;
        this.message=message;
    }
    public JsonResult(Boolean flag,String message,Object data){
        this.flag=flag;
        this.message=message;
        this.data=data;
    }
}
